NXP-10574: set freemarker output encoding to enable url escaping in templates
NXP-10340: factor NXQL.escapeString
NXP-10574: add missing test file