fixed issue with slashes not being escaped, when replacement code is upl...

...oaded