Fixes blocking issue on Windows

On Windows, environment variables can not be unicode.

Change-Id: I8c7fd7627d7f733e0db8690a39e7128b7fe2ebcf
Closes-bug: #1294246
Merge "Fixes blocking issue on Windows"