Appending a trailing slash to URLs

Closes #436.