Fixed DEF_ENC being None (hopefully last)