Fix mimetypes. Closes #499.