Encode lists as arrays, use binaries for strings.
Encode atoms as binary strings.