[docs] [issue27481] Replace TypeError with ValueError in doc regarding "embedded NUL character"