convert unicode string to string python code example Example: how to convert unicode to string python str.encode()