Avoid some charset lookups

Background info: http://bugs.mysql.com/bug.php?id=61105