Send "SET NAMES utf8" to MySQL for PHP below 5.3.6

Fixes #6273 

@DeepDiver1975