Do not assume blob contents are NULL terminated

These are all the cases I could find on the codebase.

cc @ethomson @carlosmn