Changed database interface from mysql to mysqli.
Set the database interface charset to utf8.