Fix NewWriter() to write proper strings.