Avoid a trailing dash in the slug
re #440 - Add size and extension when inserting a file