Improved bencode.