fix undefined charset