Write ready file with NIO2 rather than Guava