Now encoding nested data (hashes and arrays).
Converts XML to UTF-8.