add back magic quotes handling