pretty.c: teach format_commit_message() to reencode the output