Initial checkin
removed test for length of 0xff since it is not a valid utf-8 byte