encode a string into UTF-8, ready for XML

Hi

i need to encode a string,ready for insertion into an xml document. I think it needs to be in UTF-8

Is there a simple ruby method for doing this?

Thanks Chris