Smart mime-types adapter