fixed regexp to match full hostname (previously, 'forum.example.com' got translated to 'foruexample.com'.