fwrite bug giving wrong output...

Was giving the wrong in the output because of a Fwrite bug... (and was giving the letter "Â" too)
Merge pull request #3 from mariogrip/patch-2

fwrite bug giving wrong output...