Replace encoded type with string
Change var Dict to const Dict
Add MaxEncodedLen