Have Windows support working as well as fixed a /r/n bug that was caused
by an open being done without the 'b' (binary) flag.