Ticket #3843: mcedit - fix broken encoding into UTF-8 for 8-bit displays