Add validation check on entity length up to 256

Yeh, would be nice not to have this in two spots.