Merge pull request #486 from cheba/stream-encryption-fix

Fixed stream encription
Minor typo fixes
Merge pull request #485 from cheba/bug-477

DecodeParms typo fixed
Encode LiteralString objects

Fixes #312
Encrypt time
Use bin_string helper to simplify specs a bit