Added functions to convert file extensions and MIME types.