search news result writing to file: encoding added