Fixes #3285: Migration script now unescapes LDAP stored variables when needed