Checks to see if str is well-formed unicode or not.
UTFException if str is not well-formed.
import std.exception : assertThrown; char[] a = [167, 133, 175]; assertThrown!UTFException(validate(a));
See Implementation
Checks to see if str is well-formed unicode or not.