fixup: take duplicate slashes into account