Replace MIME Types with Document types.