fix csv dumps to handle unicode.