"xdress --debug" fails on Python3

While handling an exception, xdress tries to write _msg_ to _debug.txt_ in binary mode. But in Python 3, _str_ does not support Buffer interface, i.e., the string would need to be encoded first.

I assume it's OK to write the debug file in text mode instead.