Check length before testing characters. Also: if you compress the bundles, actually write the compressed version to disk :o
Write the changelog