Remove unnecessary trailing slash.