Clean up urls for autocomplete.