Fix random file reads for non-windows line endings
Merge pull request #1 from keiouu/master

Linux can be happy now.