Use git_buf_text_gather_stats() to implement git_buf_text_is_binary()

This matches core-git's binary detection
Make size of binary detection configurable