Small speed up by calling strlen only once in utf8_recover
Remove use of ecalloc in favor of emalloc.
Remove sizeof for types guranteed to be a certain size.
Add a new type char8_t to make the code a bit more readable.
Inline utf8_has_bom
This extension doesn't have a MINIT/MSHUTDOWN/RINIT/RSHUTDOWN function.
Replace another ecalloc with emalloc.
Remove some unnecessary parenthesis.
Document C API
Pre calculate how large the string needs to be in utf8_char_from_codepoint