Some seed files don't have any encoding set - write() function was faili...

...ng.  This should address those issues