note at this point chars will be a unicode string.