diff --git a/share/lua/intf/http.lua b/share/lua/intf/http.lua
index 8c1dddb113966ed90f4838aa25d3cd43af767d38..8814c5637b666adb4d1ab61e8fd4161fd76064ed 100644
--- a/share/lua/intf/http.lua
+++ b/share/lua/intf/http.lua
@@ -211,7 +211,7 @@ function rawfile(h,path,url,acl_)
             else
                 vlc.msg.dbg("Reloading `"..filename.."'")
             end
-            page = io.open(filename):read("*a")
+            page = io.open(filename,"rb"):read("*a")
             mtime = new_mtime
         end
         return page