use lc() in getMimeTypeCode()