fix Issue 12089 - std.utf.validate and inout(char[]) failts to compile
Merge pull request #3239 from 9rnsr/fix12089

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