Strip all trailing slashes, to ensure folders are stored correctly
Merge pull request #130 from mdlayher/master

Strip all trailing slashes, to ensure folders are stored correctly