Fixed trailing slash trim on Windows.
Merge pull request #18 from Rarst/slashes

Fixed trailing slash trim on Windows.