fix: Wrap url.parse to always return an object for query property

Closes #1182