refs #1648 : bugfix - prune additional (garbage) slashes.
 - Modified version of pat-al's solution
   ( https://github.com/Needlworks/Textcube/issues/1648 )