Issue #301: fix bad cut of string endings in entity view