Use Codecs read and write files for ST2.