Escaping apostrophes in autocomplete and search sql.