Index: formatting.php
===================================================================
--- formatting.php	(revision 41198)
+++ formatting.php	(working copy)
@@ -5147,7 +5147,14 @@
  * @param string $text The content to encode.
  * @return string The encoded content.
  */
-function wp_staticize_emoji( $text ) {
+function wp_staticize_emoji( $text ) { 
+	if ( function_exists( 'mb_check_encoding' ) ) {
+		if ( mb_check_encoding( $string, 'ASCII' ) ) {
+			return $text
+		}
+	} elseif ( ! preg_match( '/[^\x00-\x7F]/', $string ) && false === strpos( '&#x', $text ) ) {
+		return $text
+	}
 	$text = wp_encode_emoji( $text );
 
 	$output = '';
