pub fn encode_cwd(path: &Path) -> String
Encode a working directory path for use in session directory names.