Encode search query in URL
Added validation for swear words