Explicitly read input file in binary mode to prevent newline characters from being converted on Windows machines