Correct unicode conversion error when dumping SQS queue with corrupted messages