It looks like the implementation you are using for adding emoji’s is outdated. It was overhauled a while ago.
Here is an example using the overhauled technique.