Backporting to Java 6 using commons-io because we're not cool enough to use Java 7.  :(