Properly encode lists of unicode code points