Improved unicode handling in python2

Processes might fail to launch if there is non-ascii characters in environment variables.
This is likely to hit on windows, with custom non-ascii encodings, and inherit-all environment variables
just because programs don't launch otherwise