This is a rust port of zwegner's faster-utf8-validator: https://github.com/zwegner/faster-utf8-validator