switch to mime-types. fixes #320

RE: #320