Avoid UnicodeDecodeError.