Performance hack until I can properly address the speed issues in the Lua implementation of Lua's pattern matching. Should fix #648 for now.