handle when unicode which can't be converted to string
Merge pull request #5353 from ticoann/handle_unicode_str

handle when unicode which can't be converted to string