properly render json unicode in api responses

http://manage.dimagi.com/default.asp?121803
Merge pull request #3781 from dimagi/api-unicode

properly render json unicode in api responses