Fixed path_to_url when os.sep is not '/'.
Merge pull request #838 from jimperio/master

Make relative URLs work on Windows.