Corrected the dictionary that is encrypted for metadata creation.

entityId and secret where strings when encrypted and, of course, still strings when decrypted. They need to be a list end a dict respectively.