check for charset and charset's subset
added method