Another one where the output buffer is only `MAX_CONTENT_TYPE_LEN` characters. You can probably convert this to `MultiByteToWideChar`.

I suppose another alternative would be to make the `git__utf8_to_16` and `git__utf16_to_8` functions "consistent" in the other direction - by adding a `length` parameter to `git__utf16_to_8` instead of removing the one passed to `git__utf8_to_16`, but that's a whole other kettle of fish.