Reenabled set_charset/charset on Python 3