Move the plaintext formatter into UiUtils

I'm not completely happy with this location, but it doesn't look like material
for a full-blown library, so let's stick it into the place where "bits to be
used by the GUI for pretty formatting, etc" already reside.

REVIEW: 119466