More Accurate Lua Syntax

Fixed a couple of Lua calls to gsub that were unnecessarily using percent signs to escape characters in the replace string. Escaping these characters is unnecessary and while it is accepted and ignored in Lua 5.1, it will break future released of Lua.