stop using convert_to_mime_types

the in-memory representation and the messsage spec now all use mimetype
names for the JSON keys.
convert back to short names when writing to JSON