hg-to-git: avoid raising a string exception