Remove nulls from fields

As it turns out TvC puts a nullbyte at the end of its data field
when doing setpd. There's probably somewhere upstream where
it could be handle before reaching this parsing code, but I'll
just do this for now.