Fix the truncating in reports details if they fail

The current implementation will only cut a single char at the position 65535 and not actually truncate the string. This patch will fix the issue.