Strip trailing '.svg'

This now needs tests