Added support for unicode characters in SQL statements.

If the SQL statement passed to the "execute" method is a unicode string
it is converted to UTF8 before being sent to the database.

Replaced the mysql_query function with mysql_real_query because the
former doesn't work if there are binary zeros in the SQL statement.