py_str_to_git_oid: check length of raw oid (#205)