add undefined atom to encode spec
Merge pull request #1 from lrascao/fix/incomplete_encode_spec

add undefined atom to encode spec