Fixed errors caused by improper handling of line feeds in Windows environment

Fixed errors caused by improper handling of line feeds in Windows environment