Fix encoding issue when saving case close condition

[Ticket](http://manage.dimagi.com/default.asp?150013)
If a form has a case close condition that involves a question that contains unicode, then making builds will fail. This fixes that encoding issue.