Fixes the 'db export' when DB_CHARSET value is empty

If DB_CHARSET value is empty on wp-config.php, the below error is displayed:

mysqldump: Character set '' is not a compiled character set and is not specified in the '/usr/share/mysql/charsets/Index.xml' file