[REG2.065a] Issue 12089 - std.utf.validate and inout(char[]) failts to compile

https://d.puremagic.com/issues/show_bug.cgi?id=12089

Tweak for the new language feature `inout(const(T))`.