fixed Unicode handling in commit messages

I'm not confident we're always dealing with Unicode strings at that
point, but the tests seem happy