Allocates a new string buffer containing str in UTF-8.
str
string in locale charset
a new string buffer containing str converted to UTF-8.