JRuby

'incompatible character encodings: ASCII-8BIT and UTF-8' error thrown by jruby but not by ruby