Convert to CRLF line endings and trim trailing whitespace