Workaround for Ruby problem with enodings. Basically UTF-8 <-> UTF-16. #needs-testing