refs #1648 : bugfix - prune additional (garbage) slashes.
 - Modified version of pat-al's solution