Fix UnicodeDecodeError.