diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index 7256399..5cf2d12 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -1618,7 +1618,7 @@ function template_preprocess_file_link(&$variables) {
     '#theme' => 'image__file_icon',
     '#uri' => file_icon_url($file_entity, $icon_directory),
     '#alt' => '',
-    '#title' => check_plain($file_entity->getFilename()),
+    '#title' => String::checkPlain($file_entity->getFilename()),
     '#attributes' => array('class' => 'file-icon'),
   );
 
