return encoding, not charset