To deal with CaseFolding on the repo side, we need to:

A simple escaping scheme is as follows:

Note that we rarely need to

Implementation plan:

This scheme will automatically escape all paths on newly cloned or created repos.

On the working directory side, the best we can do is detect collisions. A simple scheme might look something like this: