Escape some regex symbols in the filters.