RequestFactory: optimized UTF-8 validation performance