Fix string.rep crashing
Merge pull request #379 from gamax92/LuaJSucks

Fix string.rep crashing