Added the ability to create temp files in binary mode
Single lining the write binary if statement
Merge pull request #199 from fishjord/signurl_fix_win

Signurl integeration test fix under windows