remove trailing slashes from links