Solution for encoding and decoding the Bencoding format