fn sanitize_file_stem(stem: &str) -> &strExpand description
Normalizes a suggested file stem into a safe, non-empty value.
Returns surfer_state when the input is blank or contains characters that
are broadly invalid in file names across supported platforms.