Export git_buf_text_is_binary and git_buf_text_contains_nul.

So that users don’t need to implement binary detection themselves.
Just put it all in buffer.
Merge pull request #2475 from libgit2/expose-buffer-binary-detection

Export git_buf_text_is_binary and git_buf_text_contains_nul.