cast unicode to allow json dump

Make the hash of the repo unicode so that JSON accept to dump it. 

In this case, we know subprocess will give us bytes, so we should just do `repo_commit.decode('ascii').strip()`, instead of the more complex cast_unicode.