Symbols are killing my flash

I have a problem with a form that I’ve built.

I have an input text box with var = strAddress.

When a button is pressed, strAddress is uploaded into my database and then the scene is changed…

strqual = Random(1000000000);

In the new scene I use a loadVariables to get some info from the database.

loadVariables("" + strQual,"_root");
if (EOF=="true") {
} else {gotoAndPlay("confirm","confirmThis");

My problem is if I put a ’ in my address box eg O’Malley street. My loadvariables will not work. If there is no ’ , then it works fine. I’ve tried to add…

strAddress = strAddress.split("'").join("-");CODE]
but nothing seems to work.
Any advice?