fixed a problem with Windows newlines not being recognized correctly