Fixes filepath issues
Sets ifstream to binary (fixes issue on windows)