change media_type extensions to include periods

.json and .html, for example