code: func EscapeControl(s string) string {
  	if needsQuoting(s) {
  		return fmt.Sprintf("%q", s)
  	}
  	return s
  }
docs: // EscapeControl escapes all ANSI escape sequences from string and returns a
  // string that is safe to print on the CLI. This is to ensure that malicious
  // servers can not hide output. For more details, see:
  //   * https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt