Add 'base64' encoding support in to_xml() methods.