strip trailing dashes from slugs.  #18