Fix bug in DohNewStringWithSize(): guarantee string is nul-terminated