Fix for trailing special whitespace characters in importer headers

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