Replace strnlower function with a simpler luaL_Buffer solution