conversion from/to bencode