Encoding and EOL conversion