Bencode serializer for Java