[[ Bug 12067 ]] Fix UTF16 endian conversion
Merge pull request #581 from runrevali/bugfix-12067

[[ Bug 12067 ]] Fix UTF16 endian conversion