Replace double slash for one slash if necessary.