Fix network reader/writer destruction error
Add encoding change support to shape files