Replace doesn't seem to like . :
Replace seems not the only one affected:
$ pike7.6 Pike v7.6 release 11 running Hilfe v3.5 (Incremental Pike Frontend)
string s = "foo.bar.com"; array parts = s/"."; s=parts*".";
(1) Result: "foo.bar.com"
(same in 7.2)