function Bencode.reset to clear a decoder's state