fix an encoding bug in copy content = lookup plugin

closes #3518