Prevent usage of SET NAMES for MySQL connections, closes #1265, closes #1266, closes #1267