Merging one URL onto another when not using strict RFC 3986 compliance

will now replace the current query string of the URL with the merged in
query string, causing query aggregators to be replaced.
Closes #489. Closes #511.