normalize lineendings