Moved unicode_ensure function to textutils