escape query for basic search