This is the one place where calling `giterr_set_oom()` probably makes sense because I believe the only likely failure scenario is an allocation failure in `WideCharToMultiByte`.