if the entity is a String and there's no content length specified from the container, set the content length explicitely.