fix UnicodeEncodeError