Line end normalization