Replacing slashes facing the wrong direction