Best way to capture line breaks in MultiLineTextControl?

I’m using a MultiLineTextField in a custom submitter to pass notes to the next human in the pipeline. The string received from GetValue changes line breaks to semicolons. Is there any way to differentiate a ‘real’ semicolon from a linebreak one so that

scriptDialog.GetValue("NoteField").replace(';','\n')

doesn’t turn typed semicolons into line breaks?

One way would be to quote your lines, and only replace semicolons that are not inside quotes. Not perfect, but would work. Other delimiters are possible, too.
Otherwise I don’t know if there is an “intended way” to achieve this.