Please use ``e.args[0]`` instead of ``str(e)`` (in general avoid using ``str`` if at all possible. See e.g. http://python3porting.com/noconv.html#more-bytes-strings-and-unicode