I also checked the mime type of my files using file -I <filepath>
It seems to work as long as the result is not xxx/yyy: charset=binary
I also checked the mime type of my files using file -I <filepath>
It seems to work as long as the result is not xxx/yyy: charset=binary