correct function that converts object to unicode string or string encoded as utf8