Handle mimetypes properly in the web server.