add method getCharset to MimeType