Properly escape semi-colons when writing to file.