docs: def read(path, encoding="utf-8"):
      """Read string from text file.
      """
      is_gzip = is_gzip_file(path)
  
      with open(path, "rb") as f:
          if is_gzip:
              return zlib.decompress(f.read()).decode(encoding)
          else:
              return f.read().decode(encoding)