Fix up media type reference to use an object rather than a string.