pub fn encode_component(input: &str) -> StringExpand description
Percent-encode a path/name component for use inside an entity id while
preserving case and common separators (/, ., _, -). Collision-free
where sanitize_key would risk merging distinct names.