Move search query input cleansing to the server side