pretty.c: use original commit message if reencoding fails