docs: def locale_escape(string, errors='replace'):
      '''
      Mangle non-supported characters, for savages with ascii terminals.
      '''
      encoding = locale.getpreferredencoding()
      string = string.encode(encoding, errors).decode('utf8')
      return string