Fix move data to group named 'with spaces'. See #10300

Simple bug fix. To test, try to move data to a group named "zpetr's test group change".