rename function, strict checks, add UTF-16 and UTF-32 checks
renamed function