Fixed bug with incorrect URL when base URI with trailing slash used.
Merge pull request #1 from FilipZawada/master

Fixed a bug with incorrect URL when base URI with trailing slash is used.