fix UnicodeDecodeError