Properly read input file in binary mode

This mostly affected Windows, the input SWF file was not read as binary and
newlines were improperly read on Windows.