add support for windows-style line feed