Fixing crash with url string that needed percent escapes & implementing a test