Deriving implementation for Bencode