Prevent usage of SET NAMES for MySQL connections, closes #1362, closes #1363, closes #1364