Fix windows line endings in offline compress

django itself always opens template files in binary mode, which causes an issue with offline compression on windows when template files contain windows line endings.