Index: src/wp-includes/formatting.php
===================================================================
--- src/wp-includes/formatting.php	(revision 41197)
+++ src/wp-includes/formatting.php	(working copy)
@@ -5148,6 +5148,11 @@
  * @return string The encoded content.
  */
 function wp_staticize_emoji( $text ) {
+	if ( ( ( function_exists( 'mb_check_encoding' ) && mb_check_encoding( $text, 'ASCII' ) ) || ! preg_match( '/[^\x00-\x7F]/', $text ) ) && false === strpos( '&#x', $text ) ) {
+		// The text doesn't contain anything that might be emoji, so we can return early.
+		return $text;
+	}
+
 	$text = wp_encode_emoji( $text );
 
 	$output = '';
