Fix mime processing
Merge pull request #41 from jahrome/fix_mime

Fix mime processing