added option to export unicode text file with BOM.