IMPROVED: Use module rfc2616_media_type for writing media type values.