eplaceInputStream: fix more-than-one replaces