Fix valid? hangs on a strange url.
The regular expression goes into infinite loop.
Use ascii_only?() instead