Fixed the issue in serialization of emoji chars