convert unicode string to utf-8 in environment variables before calling Windows API in python.