Instead of proposing encoding changes of output that would require a tool to sanitise the resulting from these experiments, why not consider using a tool outside SSH code to produce the pretty print in the first place?