implemented strict utf8 decoder