Convert Emoji to the wp_smile when it is available on WordPress, otherwise convert it to the HTML numeric entity.
Strips invalid characters out when the serialization fails.