Function to convert from/to utf-8

Hey man

I need a function to convert from latin encoding to utf-8 and viceversa. Does such thing exist in Flash? Any class or function which i could download from somewhere?

Thank you very much