Handles wide characters in environment variables on Windows