human
Delete every non utf-8 symbols froms string
assistant
Here is some code to delete every non `utf-8` characters from a string `line`

line = line.decode('utf-8', 'ignore').encode('utf-8')

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