Updated web server script to support path with spaces