FYI:  `encodeURIComponent` (I just received an error because I copy and paste your code withouth thinking;-)