pub fn sanitize_session_id(raw: &str) -> StringExpand description
Sanitize a session ID for safe use in filenames and socket paths.
Rejects path separators, .., and non-printable characters.
Returns the sanitized string (replaces unsafe chars with _).