fix for quote handling when no magic quotes