Just created account to say thanks. It worked for me to replace /r but when I used : decodeUriComponent('%0D')