The tool that requests the data should be able to rely on a specific encoding. I don't think hacks like sys.getfilesystemencoding() are reliable. A possibility would be `sys.stdout.encoding()`, but that can also cause problems.

I'd simply document the fact that we return UTF-8 encoded data. Every library and terminal should be able to handle that.