added encode(Atom) when is_atom(Atom)

The lack of encode(Atom) brokes mod_admin_extra and ejabberd_xmlrpc in some cases of requesting user_sessions_info.