Added code to catch and remove any / from URI path elements.

Changed how URI path has path separators removed to be once the URI is parsed,
rather than when it is received by the application.