hmm. are you only looking at one specific... column(?) because that's where the message bodies are for that report? probably not the right place to do this. should probably apply a similar cleaning function long before the data actually reaches couchexport