Modify the canonical path variable so slashes will be replaced.