impelement slightly faster utf8 decoding and use it in read ends classes