Split out of strings reading code onto a lib
I am writing a utility which needs to read the strings just as the strings command does, however, it must be done in a lazy way. I ended copying your code and reworking[1] it into an iterator and it came to my mind, it might be good to split it out to a library so we both can avoid duplicating code.
What do you think?