Data Provider with \ at the end of the name breaks with process isolation

When using process isolation and a test which has a data provider which has a "\" at the of the name an invalid php file is generated by the process isolation template.
As requested this time against 4.1