Temp file must be open as binary.

This is causing problems in Windows based systems for me.

When creating tempfile in Mac this is working flawlessly but deploying on a Windows machine this is causing problems. The file is opened in text mode and the zip of the gem gets corrupted.