void validate(S)(in S str) if (isSomeString!S)
Checks to see if str is well-formed unicode or not.
str
UTFException