I can't advise you regarding RootsMagic, but I know this can be fixed on the WikiTree end.
When you discover this kind of error in a Gedcom that you have uploaded to WikiTree, you can correct the errors in GEDCOMpare before you import the profile. Edit the Add Person profile to put the birth name into the Last Name at Birth field and put the married name into the Current Last Name field.