docs: def to_utf8(path, output_path=None):
      """Convert any text file to utf8 encoding.
      """
      if output_path is None:
          basename, ext = os.path.splitext(path)
          output_path = basename + "-UTF8Encode" + ext
      
      text = smartread(path)
      write(text, output_path)