Convert unicode strings to utf-8 encoded strings.