catch UnicodeDecodeError