add encoding to content_type