a little more elaborate UTF-8 fix attempt