Fix mimetypes reading from Windows Registry

Seriously? It has to be the worst place to
look for anything of value...