fix a UnicodeDecodeError