better RegExp string escaping in filters