Search your code for this line:
while ($row = mysql_fetch_assoc($result)) {
Right before it, add the array definition for the $replace array.
Right after it, replace this line:
$csv_output .= $row['Field']."; ";
...with the line from my code that starts the same but has the str_replace() in it.
(I'm trying not to just feed you the completed code, but hopefully get you to sort of understand how it all fits it -- a "give a fish/teach how to fish" sort of thing. 😉 )