Several changes

utf-8 coding, regular expressions, correct handling of href tags, etc