added support for non-nul-terminated body strings, like images.