Replace path extensions