set protocol level to 6 before doing anything, it makes the server talk utf-8 back.