Trap unicode error in logging the sql params in execute error.