a php helper function to send emoji encoded string to apns