TYPING: more type hints for io.formats.printing
xref #27568

```
$ mypy pandas/io/formats/printing.py --check-untyped-defs --follow-imports skip
pandas\io\formats\printing.py:194: error: "str" has no attribute "decode"; maybe "encode"?
```
