Encode/decode MSBin strings properly, which are stored in UTF8. Special cases (<, >, color=, border=) not tested.