diff --git a/src/filetransfers_window.py b/src/filetransfers_window.py
index 1584860e5cdeec0ffbdc6eb95807ee16bf24de90..32d07ac0fbd081683f4fc164ff4b08e6a61a4f59 100644
--- a/src/filetransfers_window.py
+++ b/src/filetransfers_window.py
@@ -308,7 +308,8 @@ _('Connection with peer cannot be established.'))
 		file requested by a contact'''
 		if file_props is None or 'name' not in file_props:
 			return
-		sec_text = '\t' + _('File: %s') % file_props['name']
+		sec_text = '\t' + _('File: %s') % gobject.markup_escape_text(
+			file_props['name'])
 		if 'size' in file_props:
 			sec_text += '\n\t' + _('Size: %s') % \
 				helpers.convert_bytes(file_props['size'])