Fixed: mimetype file contents should be stripped of whitespace before used