Handle UnicodeDecodeError