Prevent UnicodeDecodeError error.