Remove trailing slash at EOF