Temporary stopgap workaround for MRI Ruby versions 2.2.7, 2.2.8, 2.2.9, 2.2.10, 2.3.4, 2.4.1 for the bug https://bugs.ruby-lang.org/issues/13632 until it gets backported