url encode search term to make it safe for http post