content based mimetype detection