Proper encoding of debug MHTML file