Ensure that improperly escaped URLs cause a ParserError

Fixes #5.