Utilise ruby URI.regexp for validation

Instead of providing our own, possibly wrong, regexp use what is provided by Ruby stdlib in the URI class for the http and https schemes.