Merge -UTF8String changes in GTIndex into purgatory

Cherry picks https://github.com/libgit2/objective-git/pull/363 into purgatory.