UTF8_to_Codepoint() now returns int and validates input utf8 stream