Human: Python unicode string with UTF-8? Assistant: 
Here is some code to encode a latin character in string `Sopet\xc3\xb3n` properly

'Sopet\xc3\xb3n'.encode('latin-1').decode('utf-8')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.