Added call to mb_convert_encoding in convert_png_to_interactive, should fix Yet Another Encoding Issue. Seriously, DOMDocument is THE WORST.
Hopefully fixing the DOMDocument-related bugs for good.