Getting rid of java.nio module