prevent a double-slash / remove unneeded slash