Fix text packer

In some cases the last character was not decompressed. This is fixed now by saving used bits of last character to the compressed string and decompress this remaining bits.