Normalize LF and file encoding