URL-encode all parameters for facets ajax call

Fixes issues with facets using hashes and pluses in queries