Fix Perforce regressions with the new unicode string changes.

Perforce doesn't support setting unicode strings on its attributes, and
will raise an exception when they're set. We need to turn them into
utf-8 strings instead.