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