fixed unicode encoding via some hard coded replacements