#91624 by chx and RobRoy. PHP has an inconsistentcy about magic quoting which we have to work around.