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