I'll have a fix for this posted tomorrow, but for now, this will get you going:
1) Your use of wf:js_escape here is unnecessary and will cause trouble
in your app. wf:js_escape is more relevant for when you have to
escape a string to be contained within another javascript string.
Here, you can just do wf:wire(CodeToRun).
2) As for the utf encoding, for now, just passing it as a utf8 binary
will get the job done: wf:wire(<<"var myvar='éùà';"/utf8>>)
That said, I'll have a fix for (2) posted tomorrow. I've got it
working on my machine right now, but I'm getting a little delirious
and need to get some sleep (almost 2am), so no working to push the fix
out tonight, not at least until I've run it through the test suite.
-Jesse