Fix a bug in the git_oid_to_string() function