Include [] in host string if it's IPv6
Add buildUri() & tests for it