commit: fix pretty-printing of messages with "\nencoding "