this is the more important it of the report pillows. because we alter the data on the way to elasticsearch, but we change it back using this function here. stripping all the {#value: foo} things back to foo.