Late, but for the record:
You should use: `UnicodeError` is the parent class of `UnicodeEncodeError` and `UnicodeDecodeError`.