Removing dependencies on java.nio.file.Files, for Java 6 compatibility.