disallow_nul does not assume the input value to be nul terminated anymore