corrects the trailing /