Change `_main` to pass `encoding` to `formatted`