Features/2985 warning on too long string

@donaier 
- add validation to prevent ugly error page when a string is longer than 255 characters