Camelize correctly controllers whose name has multiple :: in it

When you have a controller names V1::Level1::Level2Contorller whose path is v1/level1/level2_controller it is camelized wrongly as V1::Level1::level2Contorller