if print raise UnicodeEncodeError, try to encode string to utf-8 (issue #35)