Fix usage of deprecated MimeUtil functions

Hooray for builds that don't yell at you so much!