Fixing error due to misuse of url.parse(..)
Merge pull request #43 from mrvisser/nodejs-0.8.24-compat

Fixing error due to misuse of url.parse(..)