bug628796: bug fix for &amp; => & replacement not working