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.