def make_printable(string):
  """Makes a surrogate-escaped string printable.

  Args:
    string: Unicode string with surrogate code points.

  Returns:
    Unicode string having surrogates replaced by the replacement character.
  """
  return ''.join('\ufffd' if 0xd800 <= ord(c) < 0xe000 else c for c in string)