Handle escaping of single quotes in search filters.

We found a bug when typing single quotes into the search field.
Escaping the quotes fixes this problem.