encode attachment up front so that unicode xml does not fail
Merge pull request #82 from dimagi/fix-unicode-form-fail

encode attachment up front so that unicode xml does not fail