diff --git a/lib/puppet/file_serving/content.rb b/lib/puppet/file_serving/content.rb
index <HASH>..<HASH> 100644
--- a/lib/puppet/file_serving/content.rb
+++ b/lib/puppet/file_serving/content.rb
@@ -41,6 +41,6 @@ class Puppet::FileServing::Content < Puppet::FileServing::Base
   end
 
   def to_raw
-    File.new(full_path, "r")
+    File.new(full_path, "rb")
   end
 end
diff --git a/spec/unit/file_serving/content_spec.rb b/spec/unit/file_serving/content_spec.rb
index <HASH>..<HASH> 100755
--- a/spec/unit/file_serving/content_spec.rb
+++ b/spec/unit/file_serving/content_spec.rb
@@ -73,7 +73,7 @@ describe Puppet::FileServing::Content do
   it "should return an opened File when converted to raw" do
     content = Puppet::FileServing::Content.new("/path")
 
-    File.expects(:new).with("/path","r").returns :file
+    File.expects(:new).with("/path","rb").returns :file
 
     content.to_raw.should == :file
   end
(#<I>) Serve file content in binary mode

Previously, Puppet::FileServing::Content opened files in text
mode. Changed to binary mode.