writerfilter: Avoid a temporary file, sed can handle this by itself.

Change-Id: I7fde1b44809b1886730145f16878e0f1045b2555