transform /foo/bar/baz.html -> /foo/bar/baz/index.html