Yeah, in fact we could probably do with a full-blown preg_quote equivalent function to be honest. If I write this and test the crap out of it, would you be up for including that in this pull request?