is_shared(): Encode "path"