Fix windows.

modules/win_pkg.py:
locale.get_locale() doesn't exists. locale.getlocale() does but returns (None, None) on windows. locale.getpreferredencoding() appears to be correct.

modules/win_file.py:
_is_bin appears to have been removed form modules/file.py
Merge pull request #5482 from olliewalsh/fix_win_pkg

Fix windows