.......PS. [ZBX-8287] truncate long text values to maximum field length before inserting into database

Maximum field length is measured in characters, not bytes.