Change mimetype and response headers for export handler