Dump ioutil and use json Encoder

See no reason otherwise at the moment.