URI encoding for autocomplete input