fix line ending character