remove call to replace() that has no effect

`'/'.replace(/\//g, '\/') === '/'`

That's basically a no-op.