Git repo handling breaks with python 3

This occurs because python 3 doesn't allow concatenating bytes and strings without conversion of one into the other, and should be fixed with the attached commit.