checks undefined charset