Although there are similar questions, I can\'t seem to find a working solution for my case:
I\'m encountering some annoying hex chars in strings, e.g.
\'
You can use decode after encoding just like this
s.encode('ascii', errors='ignore').decode("utf-8")