Convert line endings - when did this go wrong?