pretty: save commit encoding from logmsg_reencode if the caller needs it