charset must be defined