=htc fix off-by-one error when creating strict entities for small payloads