Ruby - Read an arbitrary number of bytes from a file