Fixed csv double quote escaping behavior. New behavior is as in csv standards.

Added two backward compatibility flags to allow returning to the (broken) 1.4.0 functionality if needed

Added tests to match

Quoting output properly will be done separately