sub some stuff from mediatypes for filenames