Added foundation::utf8::encode.