MIME type parameter serialization code de-duplication.