Added encoding, backed up seed file, rewrote seed file programmatically.