pub fn sanitize_text(text: &str) -> Result<String, String>
Sanitize a short text, such as the failing command quoted in an issue.