unc_text: Encode NL and CR as unicode for logs
Handle multi-line string spacing better.

Fixes SF#602