Only call TranslateCharacterSet on ascii strings. Fixes bug 2630.