Update valid_url.rb

adds # -*- encoding : utf-8 -*- to be able to work in ruby 1.9