code: def _log_control(self, s):
          
          if self.encoding is not None:
              s = s.decode(self.encoding, 'replace')
          self._log(s, 'send')
docs: Write control characters to the appropriate log files