fixing newline characters to unix format