Ruby code to identify 2-byte characters