Fix error with non-ASCII  commit messages

I managed to fix my previous issue. Hope that helps someone.