Issue #2459563 by MegaChriz: replaced calls to \Drupal\Component\Utility\String with \Drupal\Component\Utility\SafeMarkup (as per change record #2457593).