fn sanitize<S>(s: S) -> Stringwhere S: AsRef<str>,
Sanitize a string for logging (i.e. as if with printf)