Cannot index event publisher - new line

I am getting an illegal_argument_exception in filebeat.
I found out it is because of the "reason": """Illegal unquoted character ((CTRL-CHAR, code 13)): has to be escaped using backslash to be included in string value at [Source: (byte)"

so basically, in some fields there is a new line and this is causing the exception.
I do not want to change this is the source. is there another way to fix the issue?