refactor processing api to be clearer
fix for encoding issue with forms with an encoding declaration