ensure SQL queries are utf8
don't die if XML parse fails