This might be bad practice. I don't know; a fellow monk will have to tell me if it is.
When I don't know the application that will be reading my csv file, I search for commas before writing to the file and replace it with a random character that means nothing. For instance
. This way the reader of the csv file can always split by commas. The only thing to look out for is which character you pick to use to replace the comma.