Hello VM community

I'm using Joomla 3.9.23 and VirtueMart 3.8.6 10373
The database table structure is in UTF-8
In VM config "invoice/email" I've chosen the font "Free mono (UTF-8 Unicode)"
But the same 3 ASCII characters are saved in many "customer notes" in database
I've read a couple of posts a str_replace is an option for replacing those ASCII
Is there a way to intercept them and replace, before they get saved to DB?

 : return

 : line Feed (Lf)
' : apostrophe '
The "Return" and "Line feed" can be relpaced by a space
How to formulate a script ? In what file and where to insert it?
Thank you for your time

I found

<h3><?php ($this->keyword = vRequest::uword ('keyword', "", ' ,#39,-,+,.,_,#,/')); ?></h3>
$name = str_replace(''', ' ', $product->product_name);