Merge pull request #1726 from crazymaster/development git_buf_text_gather_stats doesn't work for multi-byte characters