fixed an issue where using atoms or binaries for strings was failing to encode
Merge pull request #5 from lwes/develop

issue where using atoms or binaries for strings was failing to encode