Fix double encoding bug in org identities