Adds URL encoding for Polaris autocomplete function.