Improve 'termencoding' setting for Windows environment