Support Win32

With this commit, Gem reading/writing is forced to binary mode.  This allows Win32 support without changing *nix operation.