Update valid_url.rb

adds # -*- encoding : utf-8 -*- to be able to work in ruby 1.9
Merge pull request #2 from michelson/patch-1

ruby 1.9 encoding fix