Better way to conver unicode values.

The old code was trying to change tuples, which failed.