Fix invalid escape query (valid in Lua, not LuaJIT)