Fix py_str_to_git_oid for raw oids