Fixed packet length miscalculation issue
Fixed bug where empty strings can't be decrypted.