Well, the commit message doesn't explain that gsub('\.', FOO) is really escaping the string '\.' not the regular expression '\.', which are two completely different things. I think it's worth a comment in the code to avoid confusion when reading this :-)