Still UnicodeEncodeError for unicode objects. Please write also test for this method.