New UTF8 encoding/check/len functions