Docker registry and our image-proxy service working again properly.
Slashes must be removed from the non directory part only.