Unpacking zipped files now works properly (does not corrupt binary files).

Encoding is also back in the core, and enabled by default.  (if you don't need encoding support (unicode), turning this option off speeds up opening/saving files).

Also some minor bugfixes.