only strip the extension from the URI if there is something to strip. closes #1292