mime gem version >= 0.4.0 changed the API and broke this gem