UTF-8 fixes for jruby