ruby: add binary decoding.
ruby: cleanup warnings