Use UriBuilder instead of StringBuilder whenever appropriate