TRUNK-2280: User friendly error message is displayed when number of characters exceed 1024