Serialization and deserealization of bencoded data used by bittorent protocol.