      -------
      str
          The filename of the file that contains the crash report
      """
      original_traceback = traceback.format_exc()
      path = os.path.dirname(os.path.realpath(sys.argv[0]))
      filename = os.path.join(path, datetime.now().strftime("crash_report.%Y.%m.%d.%H%M%S%f.log"))
      freeze_log = list(_DEBUG_BUFFER)
      try:
          from lib.sysinfo import sysinfo  # pylint:disable=import-outside-toplevel
 
</s> remove     freeze_log = list(_DEBUG_BUFFER)
 </s> add     freeze_log = [line.encode("utf-8") for line in _DEBUG_BUFFER] </s> remove     log_file = RotatingFileHandler(filename, backupCount=1)
 </s> add     log_file = RotatingFileHandler(filename, backupCount=1, encoding="utf-8") </s> remove             self.append(line + "\n")
 </s> add             self.append(f"{line}\n") </s> remove         outfile.write(sysinfo)
 </s> add         outfile.write(sysinfo.encode("utf-8")) </s> remove     with open(filename, "w") as outfile:
 </s> add     with open(filename, "wb") as outfile:
    original_traceback = traceback.format_exc().encode("utf-8")
      -------
      str
          The filename of the file that contains the crash report
      """
    original_traceback = traceback.format_exc().encode("utf-8")
      path = os.path.dirname(os.path.realpath(sys.argv[0]))
      filename = os.path.join(path, datetime.now().strftime("crash_report.%Y.%m.%d.%H%M%S%f.log"))
      freeze_log = list(_DEBUG_BUFFER)
      try:
          from lib.sysinfo import sysinfo  # pylint:disable=import-outside-toplevel
keep keep keep keep replace keep keep keep keep keep
 Bugfix - lib.logger - Force file writing to urf-8 
lib/logger.py