Fix edge case when visiting bogus URLs.
Fix edge case when parsing bogus Set-Cookie header from <meta> tags.
Merge pull request #264 from djanowski/edge-cases

Fix a few edge cases when parsing URLs and cookies