pretty: refactor to print strings, not stdout directly
pretty: refactor to print strings, not stdout directly

We need this for sane error reporting.

artagnon/rhine-ml,artagnon/rhine-ml,artagnon/rhine-ml,artagnon/rhine-ml