Remove unneeded trailing slash