add line-ending normalization