Simplyfied Dict encoding