Simplify database.php and sets encoding to utf8 by default.