Fixed a problem with \ and $ in the replacement string