uSetEnv fails with multibyte or non-Western characters

[CR #539437] The uSetEnv function fails if one of the arguments given to the function contains multibyte or non-Western characters.

Workaround: On the command line, set ETL to support UTF-8, for example:

set LANG=zh.UTF-8