pub fn encode_project_dir(path: &Path) -> StringExpand description
Claude Code’s project slug for a working directory: every character that is
not an ASCII letter or digit becomes -.
Claude Code replaces UTF-16 code units, so a character outside the Basic Multilingual Plane becomes two dashes.