Make sure strings are null-terminated