I'm not sure if 'mime' is a good word for the method.  Maybe `setExtension()` is better?