xml_encode() now takes an optional hash of options.