Added code to not set the encoding before termencoding on Windows Systems.