Check for and strip the trailing slash as well.