More work in bencode.rs