PHP write problem

When I write text from flash to a txt file true php, php puts the escape character ‘’ before the special characters. And when I load the txt file in flash I get the text with the escape character

this is my php code
<?
$param = “personaltext=”;
$fp = fopen (“personal.txt”, “w+”);
fwrite($fp,"$param$personaltext");
fclose($fp);
?>

input text= rock 'n roll
result= rock 'n roll

Does anybody knows how I can avoid that

thanks in advance