Handle UnicodeDecodeErrors