Remove trailing slashes from URL

Slashes are appended when the full URL is built so return with trailing
slashes generates invalid URLs.

Closes #26
Don't use deprecated APIs