Recode NETWORK before writing (rev. 15)

Signed-off-by: nixnodes <code@eth.si>