I would be very weary using path.normalize() when handling urls, there is the OTHER OS that for some reason chose to use backslash as their path separator.  this might create urls with blackslash (bahhh) when running on THAT OS and you don't know how its going to backfire on you.