#462 fix, remove leading and trailing dashes from urlized slug. includes...

... test changes

This fixes #462. Leading and trailing dashes `-` are removed from a urlized slug so that it results in a url slug like `url-slug` instead of `-url-slug-`  as referenced in the issue.