Changed bencode parser

Using a new bencode parser. Found at
https://trac.transmissionbt.com/browser/trunk/libtransmission/bencode.c?rev=12463