change format extension to content type