XWIKI-9025: TRANSPORT_ERROR pop up when accessing Tree view, with a page with brackets in its name
* Replace every usage of UriBuilder#build(Object...) with UriBuilder.buildFromEncoded(Object...) and properly encode the REST resource path elements.
* Extend existing functional test to cover this issue.