Use the correct character encoding for exceptions coming from libtorrent.