Handle screwy encoding case on jruby