remove unnecessary encode() call; fix indenting
Merge pull request #1753 from dimagi/enc

remove unnecessary encode() call; fix indenting