Add a parameter to validate_url() to control if absolute urls are guessed

Fixes #465