Ensure literal regex is escaped. wasn't noticed on PG 9.1, but was a problem on 9.0