fix error encoding from psych in jruby