Implement UTF8 character length detector