utf16 bugfixes