Removes a trailing slash