replacing illegal slashes with nothing