DS-1981 Filter newlines before printing to csv

DS-1981

remove newlines before printing to CVS file in metadata-export