normalise tabs and line endings