Fix problem with trailing slashes. Now required for collections.