Invariants of Automorphic Lie Algebras