Encode output that is sent to the pager.
Address comments in the PR.
Merge pull request #2738 from mdboom/pager-encoding

Unicode content crashes the pager (console)