Fix out-of-bound read.

A Vector<char> is not null-terminated, so we must explicitly use the
length to properly print it. Fix somes tests, and some potential
crashes.