Fixed infinite loop when replacement file contains "$&" characters

Got an infinite loop on include of file with "$&". To prevent this, used function argument to String.replace.