deal with different-line-endings