Fixed #718: Generating the current route without additional arguments results in unescaped single quotes and square brackets, potentially incorrectly replaced argument separator