Bencode encoding/decoding interface