Use #encodeURIComponent() instead of #encodeURI() to encode @CopySource.