The mimetype values should be string not unicode

With this patch the products stores in the mimetype registry values as strings.
This is particularly important for the icon_path: if it is a string it will be traversable, if it is a unicode it will not.