Smart mime types