Differentiate between text and binary files

libmagic(3) is used to get the mime type of a selected file. Every file not
matching the 'text/*' mime type is considered a binary file for now.