You can do it using do('SET NAMES utf-8') by hand and then undo it. So using SET NAMES utf-8; should work as expected. I also think it is what everybody expect as utf8 is a superset of latin1 :)