fix UTF8ToUTF16 hack