Follow-up fix for issue #235, deal with '/' when adding trailing slash

I messed up and missed something in that last fix I did.  This corrects it.

@modeswitch, Can you review, land, build/publish when you have a min?  Sorry about that.