FIX: some replacements required to RegEx generated broken queries with bif:contains()