Fixing character escaping errors

Some syntax errors in Lua for character escaping were silently
ignore by old versions of LuaTeX, but the new one raises errors.
Maybe a side effect of Lua 5.2?