Don't add a terminating slash to the base URI

Only replace extra slashes with a single slash.
Catch trailing / before query building streamer

Closes #1086
whitespace