Fix problem with use of quote in filter query