Fix UnicodeWarning error