A bencode encoder/decoder in hs