fn encoded_projects_prefix(projects_root: &Path) -> String
The slug prefix for paths under <projects_root>: the root path with / and . mapped to -, plus the trailing separator’s -.
<projects_root>
/
.
-