regedit: Correctly parse key name containing ']' when deleting/exporting.