IO.binwrite should accept options hash