Replace line terminators not only \r (close gh-69).