Increased pipe buffer to 30 MB to avoid waits on flush().
Turned some static variables into instance variables because we need to support running multiple bulkloaders at the same time.
Truncate strings when we know they won't fit in the target columns. Truncate at char level, taking into account that we send multibyte chars but columns lenghts are in bytes.
Support sending a string field into a Date column (parse it as yyyy-MM-dd).