Removing slash from the end of uri, if existing.