Allow the replace argument of the inreplace method to be a Symbol.

As discussed in https://github.com/mxcl/homebrew/pull/21936