fixed a bug in the parser causing URL paths with spaces to be butchered