Make GetMimeType a static public method so others may use. Also make mimeType optional and default to application/unknown.