fixed handling of complex mimeType names