Fix for some invalid url handling; in this instance, the utility class is not doing the same thing the replaced line is doing.