Added filtering and clean-up for bad unicode chars in a record