Add validation check on entity length up to 256

Thanks for adding that!