old_contents: import logging
  logger = logging.getLogger(__name__)
  
  
  def str_encode(value='', encoding=None, errors='strict'):
      logger.debug("Encode str {} with and errors {}".format(value, encoding, errors))
      return str(value, encoding, errors)
  
  
  def str_decode(value='', encoding=None, errors='strict'):
      if isinstance(value, str):
          return bytes(value, encoding, errors).decode('utf-8')
      elif isinstance(value, bytes):
          return value.decode(encoding or 'utf-8', errors=errors)
      else:
          raise TypeError("Cannot decode '{}' object".format(value.__class__))
  
new_contents: import logging
  logger = logging.getLogger(__name__)
  
  
  def str_encode(value='', encoding=None, errors='strict'):
      logger.debug("Encode str {value} with encoding {encoding} and errors {errors}".format(
          value=value,
          encoding=encoding,
          errors=errors))
      return str(value, encoding, errors)
  
  
  def str_decode(value='', encoding=None, errors='strict'):
      if isinstance(value, str):
          return bytes(value, encoding, errors).decode('utf-8')
      elif isinstance(value, bytes):
          return value.decode(encoding or 'utf-8', errors=errors)
      else:
          raise TypeError("Cannot decode '{}' object".format(value.__class__))
  
subject: Add a forgotten parameter in a log line