torrent.py: utf-8/binary fixes