Use Apache commons IOUtils rather than our own