Handle escaping of single quotes in search filters.