Encode LiteralString objects

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