Use binary mode to fix file input in windows