Extract URIBuilder.
includes convenience methods.
Make it final
sane toString
And the writer should do its thing correctly...