Improve log message for invalid unicode.

Truncate long values, and include the argument name if available.