Issue/master/pup 2946 filebucket encodings

This pull request adds an implementation of `#compare_stream` that will properly compare the binary values of two IO streams.