file module: fix line endings