Strip leading slashes and double slashes to ensure thumbs are generated correclty