grabtests: fix very slow download because of broken ipv6 on codeforces

and support both codeforces.com and codeforces.ru domains
grabtests: support html special chars

fix bug #1