extras/DynamicString: Missed proper null character safety in earlier commit