Fix for issue 44 from bitbucket (slash handling)

I've applied the changes I made while this project was on bitbucket to fix issue 44 (slash handling).