Fix bug in URI extension when doing regex comparisons.