Truncate IPTC strings to permitted lengths.