fixed mime type encoding issue

https://groups.google.com/forum/?hl=en&fromgroups=#!category-topic/anycommerce-app-development/bug-reports/sSW5BZvkaPI