fix ReadUTF16String and ChatHandler