restore trailing slashes