Handle JavaScript UTF16 asymetry v.s. perl utf8