[DependencyInjection] Fixed support for backslashes in service ids.

This change is for consistency with camelize() which is used in ProxyDumper and PhpDumper.