Some seed files don't have any encoding set - write() function was failing.  This should address those issues