Bugfix: Fixed issue with added trailing slash in token replacement.