encoding the search keyword

encoding the search keyword by using URL.encodeQueryString() method.