Fixes issue #4 by accounting for a possible ending forward slash in the URL