Use `StringValueCStr` instead of `StringValuePtr`

`StringValuePtr` returns a non-zero terminated `char *`, but we need to pass a zero-terminated `char *` to libgit2.