Bencode streaming encoder/decoder