Treat emoji characters differently 

REF: #361 
Add a comment here that explains what this block of code does.