Fix test to work across MRI / jruby difference in default encodings