Remove sanitize and just use url-encode directly.

Sanitize was just a wrapper for url-encode and there was no work or
logic so it could be refactored out.
Remove sample test.
Add test for build-query-url.