WhatPumpkin/Sburb — pull request #124 by FinnStokes (2012-10-02 12:30:36+00:00)
Title: Fix XML validation error loading from save in Chromium

It seems that Chromium's DOM parser has issues with null characters at the end of the string it is parsing and for some reason, you sometimes get one or two in the string returned from Iuppiter.decompress. This meant that when loading a saved state, you often got a "Extra content at the end of the document" error.

This was the only way I could find to reliably get rid of the null characters, as replacing the string "\0" didn't seem to work properly.