workaround case where the default encoding is not utf-8 - https://github.com/jruby/jruby/issues/2035