Fixed writing of string columns with special chars