Loadstring() not working properly?

Its this line:

I believe this is coming from the NLS function, as removing the code that runs the NLS function makes it not error.

But I also have a problem where it doesn’t catch output, but I can fix that easily.