Fix opening files in binary mode on Windows, again

The .tar.gz file generated by 'yotta publish' was invalid because
it was opened as text in Windows.