allow to set by config.php default charset database

i've been doing since 4.x i thought this should be much easier to be implemented in config.php
i have no experience using phpmyadmin custom classes nor functions so i used the easiest method i could think of.