Logged In: NO

That doesn't sound right... the encryptText method uses base64 encoding to encode the cipher text, which should never include any newlines. Besides, cookie values aren't interpreted using URL encoding of any kind under normal circumstances. Why add this?