Workaround buggy mime_content_type on php 5.2.0+etch10 (not tested on other version).