Fix for safeQuote() helper so it doesn't quote SELECT statements.  Also
fix for loadXML issues in list icon handling.