Support charactor set when exporting database to local SQL or CSV files.