Sanitizing Plist UTF8 strings #2482

I like to resolve this issue asap. I would appreciate your feedback on the solution.
I'm willing to do whatever it takes to fix this. Let me know if this is the way to do it.

Thank you, Ladi
What about like this?:
```ruby
if text.respond_to? :encode
  text.encode(...)
else
  text
end
```