Moved mime-type functions to mime.c