Fix "undefined method binread" in functional tests on Ruby 1.8.7

- No `IO.binread` on 1.8
- Fix space between method call and argument (triggers ruby warnings).