fix an encoding bug in copy content = lookup plugin

closes #3518
Remove some test prints