Encoding the returned xml text

Encoding the returned xml text with the specified charset