Fixed escript replace.