Fix textpacker

Fix textpacker with last bits not written to compressed string