Bug-fix for different newline characters.