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