refactor processing api to be clearer
fix for encoding issue with forms with an encoding declaration
Merge pull request #2392 from dimagi/ct-encoding-fix

fix for encoding issue with forms with an encoding declaration