FIX: Better boundary checking for emoji