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.
Done. I omitted the `fu_` prefix for this methods since I think they're referencing fileutils, and since we've copied them it seems odd to keep that prefix.