Added serializeString function to byte tree.

Fixed some bugs in decryption verifier.