Support UTF-8 error message

http://manage.dimagi.com/default.asp?128674#741648