b0235c
Let's decode the string received instead of encoding it This should make more sense, we may have retrieved bytes from pygit2, thus we try to decode it and find out if it is a text file or not