Add Encode helper
Fix missing newline in template
Fix code style
Merge pull request #69 from interagent/tmaier-encode-helper

Add Encode helper