Corrected an issus with unicode (UnicodeEncodeError).