Fix MIME type computation
Merge pull request #52 from jamiesnape/FixMIMEType

Fix MIME type computation