Escaping search box string before updating URL