Fix io for r.binary

I missed that in the review.
I did generate the docs with this fix, and it works fine.

@chipotle -- Could you take a look at this?