That's not enough information, we need to see the actual error not an interpretation. Can you post the 20-30 lines that surround the UnicodeEncodeError.
Just to add, you can redirect console errors to file.
data consits of all torrents available, about 3Mb of data, about two hundreds of torrents. And i can't clarify wich of them brings error.
I just saw the error in pdb. Maybe it is possible to reorganize module logic in a way, when data processed by parts, a part for a torrent, for example.