Removed some unnecessary encoding/decoding and normalized newlines.
Merge pull request #1 from rahul-ramadas/fix-correct-newlines-on-windows

Removed some unnecessary encoding/decoding and normalized newlines.