risolvi semplicemente così
in asp


str = Replace (str,"'",Chr(96))

il carattere che vedrai è un apice che non dà noia