Checking charset and avoid parsing time frame duration every request