Do gsub with a regexp instead of a string

String#gsub works around 13% faster when using a Regexp in lieu of a String.