Fix for: `PHP Fatal error: Call to undefined method mysqli::get_charset()`