Use String AOP to refactor encoding in AutoBattleController