Allow mime overrides. Closes #1945