Only allow strings in URL::Sanitizer.valid?
From https://gitlab.com/gitlab-org/gitlab-ce/issues/55079, we see that some values of .gitlab-ci.yml
attempt to pass in an array for a URL, but this results in an Error 500 because url.strip
does not make any sense.