do not strip the extension for URI's ending on a slash. Closes #1269