My permalink structure is correct
It is when i use the restore it gets messed up.
I checked the other sites where i use your plugin. 10 of 17 sites have strange strings in the backup file for the sql-dump. They are on different hosts.
I have also checked the database, and the values in the tables are correct.
The added strings in the sql-dump-file are always at the same length but contains a random value