shurikk/bttrack — pull request #4 by jarthod (2014-05-19 11:11:39+00:00)
Title: Update bencode with fixed UTF-8 encoding bug

Ok here is the fix I talked about.
I fixed string encoding in bencode because it was returning the wrong number of chars when some bytes happen to be UTF-8 valid combination, which is often the case in info_hash.
So the scraper was producing invalid bencode document impossible to parse for the client.