Fix the trailing slash problem.