Some UTF-8/UTF-16BE conversion fixes for >2-codepoint characters.
Some UTF-8/UTF-16BE conversion fixes for >2-codepoint characters.

fador/mineserver,fador/mineserver,chtisgit/mine152,fador/mineserver,chtisgit/mine152,fador/mineserver,chtisgit/mine152,chtisgit/mine152