Fixed a bug where the last block of text was not always encrypted or
decrypted if it was shorter than the blocksize of the cipher