fixed a few instances where strings won't null terminate