Rewrite CRLF translation to use more system calls.