Correctly quote empty strings in CSV for COPY

Empty strings are supposed to be quoted for PostgreSQL (see
http://www.postgresql.org/docs/9.2/static/sql-copy.html). However, the
csv module will quote the double-quote characters, since it interprets
them as a normal, two double-quotes string. So, we do a last pass to fix
the quotes the way PostgreSQL expects them.