Encode LiteralString objects

Fixes #320
Encrypt time
Use bin_string helper to simplify specs a bit
Merge pull request #488 from cheba/encryption

Literal string encryption