Add a unit test stressing the processing of supplementary unicode characters such as smileys etc.

Also add code to ensure that these are identified as “emoticon”
characters.