Fixing encoding issues with the inline SQL query in the mapcache XML file.
Updating autotest.