Bencode Java implementation