Fixed serious bug with encode of dual-vars to strings

Missed the ending \0. Closes #31. Thanks to Grinnz