Fix #5762, unable to install chrome extension on windows with python.

Fix #5762, unable to install chrome extension on windows with python.

The crx was being opened in text mode, which on windows will automatically
convert newlines to \r\n, which corrupted the extension.