Use dup.force_encoding to duplicate and change encoding