Improvements to io.utils and roosh