Improved quoting in script wrappers. Add util.LQ function for Lua quoting.
As discussed in #154.