Fixed code that replaces %20 in the string.  Now does all occurrences of %20