Trim trailing slash from href