Fixed a VERY annoying bug that in some cases removed the last few chars or added random one upon decompressing