in reply to UTF8 with YAML or JSON

You might try experimenting with the utf8::all module, and see what effect that has on your code. It's perldoc seems to address your problem.

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh