support UTF-16 surrogate pairs
reject encoding tables with negative elements