Changes to deal with servers that have magic quotes enabled.