Update to Lua 5.2. Change escape sequences from backslash to percent sign to make the code 5.2-compatible.