fix metadata export to csv conversion

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