Fix #7853
Test fix for #7853
Improve documentation for mkTextEncoding