fix export header bug with custom reports and unicode

http://manage.dimagi.com/default.asp?103113