fix utf16 compat