Get byte count from UnicodeEncoding