Prevent multiple slashes from going into the path.