HPCC-8638 Allow the internal CSV buffer to dynamically resize

Also clean up the quote processing code by including it in the same loop
as the quote processing.  This avoids copying the strings more than once.
Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>