text: Add utf.encode function.