pub fn sanitize_for_log(s: &str) -> String
Sanitize a string for safe log output by escaping control characters. Prevents log injection where attackers embed newlines to forge log entries.