Add character set support for MySQL query