Fixes the 'db export' when DB_CHARSET value is empty.