Updated write error addresses to csv file.  Does not rely on JSON.stringify