Make cookbook url validation stricter.

Use validate_url for Cookbook URL validations to ensure that no nonsense is
present.