Fixed crash caused by inputting emojis on Android