modified for emery's bencode branch of go-cjdns