Mach backend encoding fix
Merge pull request #962 from dimagi/mach-unicode

Mach backend encoding fix