Maybe this will work:
Open the Script in you favourite editor
Open a find/replace dialog
Type into the find field \"
Type into the replace field "
Click on 'replace all'
Open a find/replace dialog
Type into the find field \'
Type into the replace field '
Click on 'replace all'
Now the text shouldn't contain \" or \'
only " and '