Removes usage of SET NAMES queries.