Fix py_str_to_git_oid (closes #227)