Add MySQL charset configuration support

Pull request for Issue #244