diff --git a/rb/spec/integration/selenium/client/api/screenshot_spec.rb b/rb/spec/integration/selenium/client/api/screenshot_spec.rb
index <HASH>..<HASH> 100644
--- a/rb/spec/integration/selenium/client/api/screenshot_spec.rb
+++ b/rb/spec/integration/selenium/client/api/screenshot_spec.rb
@@ -13,7 +13,7 @@ describe "Screenshot" do
     page.capture_screenshot tempfile
 
     File.exists?(tempfile).should be_true
-    File.open(tempfile, "r") do |io|
+    File.open(tempfile, "rb") do |io|
       magic = io.read(4)
       magic.should == "\211PNG"
     end
Encoding fix for RC screenshot spec for Ruby <I>