Explicitly specify the UTF-8 charset using a SET NAMES query.

This should not be necessary because of the 'charset' setting in the DSN,
but PHP versions before 5.3.6 used to ignore the 'charset' setting.