git_buf_text_gather_stats doesn't work for multi-byte characters