fix line terminators