Update validator to reject urls with a newline.

Adds a test case for a url with a newline character, updates the validator
regexp to match the entire string. Also removes some debugging code left in by
accident.