utf8-to-unicode bug fix