Determine MIME types of data or files using libmagic