Fix unicode handling issues in environment variable I/O on Python 2