null terminate at end of string, not eol